removeribbonmenu

Removes a ribbon menu rbmname or pm, from the Compose user interface. removeribbonmenu is only available in the Compose GUI.

Syntax

removeribbonmenu(rbmname)

removeribbonmenu(uiPopupMenu)

Inputs

rbmname
The name of the ribbon menu.
Type: string
uiPopupMenu
The handle of the ribbon menu.
Type: class

Examples

Remove the given ribbon menu:
pm1 = addribbonmenu('Test1');
pm2 = addribbonmenu('Test2')
removeribbonmenu('Test1');
removeribbonmenu(pm2);

Comments

The deletion of a ribbon menu triggers the autodeletion of the items that are under its IDE tree, such as popup menus